package psd.model.Prolog.Converters;

import org.eclipse.jdt.core.dom.MarkerAnnotation;

import psd.model.IConverter;
import psd.model.Prolog.FactGenerationToolbox;
import psd.model.Prolog.PrologConverter;


public class PrologMarkerAnnotationConverter extends PrologConverter implements
		IConverter<MarkerAnnotation> {

	public PrologMarkerAnnotationConverter(FactGenerationToolbox toolbox) {
		super(toolbox);
	}

	@Override
	public boolean convert(MarkerAnnotation node) {
		visitAnnotation(node, "[]");
		String id = idResolver.getID(node);
		checkAndGenComments(node, id);
		writer.writeFact("markerAnnotationT", new String[] { id, this.getFilePath(node), this.getLineNumber(node) });
		return true;
	}

}
